package com.hongyue.dey05;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Demo {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("dey11\\src\\com\\hongyue\\dey05\\aaa.txt");
        FileReader fr = new FileReader("dey11\\src\\com\\hongyue\\dey04\\aaa.txt");
        for (int i; (i = fr.read()) != -1; ) {
            fw.write(i);
            fw.flush();
        }
        fw.close();
        fr.close();
    }
}
